package cz.kfad.ofrss.activity;


import cz.kfad.ofrss.R;
import cz.kfad.ofrss.backend.BackendService;
import cz.kfad.ofrss.backend.IBackend;
import cz.kfad.ofrss.db.DbConstants;
import cz.kfad.ofrss.model.RssFeedShort;

import java.util.List;

public class AllFeedsActivity extends FeedListActivity {

    private IBackend backend = BackendService.createBackend(this);

    @Override
    protected CharSequence getActivityTitle() {
        return getString(R.string.allFeedsByDateTitle);
    }

    @Override
    protected List<RssFeedShort> getFeedList() {
        return backend.findAllFeeds(DbConstants.COLUMN_RSS_FEED_PUBDATE + DbConstants.DESC);
    }
}
